home *** CD-ROM | disk | FTP | other *** search
- /*
- * the class FILE_VERSION
- * Copyright (C) 1996 Kazutaka Hirata <khirata@jove.acs.unt.edu>
- */
-
- #include "file.h"
-
- const INTSTR_ELEMENT FILE_VERSION::version_str_table[] = {
- {VERSION_170 , "save_file_170" },
- {VERSION_200A8 , "version200a8" },
- {VERSION_200B0 , "version200b0" },
- {VERSION_200B18 , "version200b18"},
- {VERSION_UNKNOWN, NULL }
- };
-
- uint FILE_VERSION::get_version_no(const char *str) const
- {
- INTSTR_TABLE table(version_str_table, VERSION_UNKNOWN);
- return table.get_no(str);
- }
-
- const char *FILE_VERSION::get_version_str(uint ver) const
- {
- INTSTR_TABLE table(version_str_table, VERSION_UNKNOWN);
- return table.get_str(ver);
- }
-